﻿using System;
using System.Xml.Linq;
using NCMIS.ObjectModel;
using NCMIS.AccessControl;
using NCMIS.ObjectModel.MetaData;
using NCMIS.Produce;
using NCMIS.Provider;

namespace NCMIS.Provider.SampleProvider
{
    public class SampleDiscoveryProvider : DiscoveryProviderBase
    {
        // returns sample query response
        public override CmisObjectList Query(string repositoryId, string statement, bool searchAllVersions, bool includeAllowableActions, IncludeRelationships includeRelationships, string renditionFilter, string maxItems, string skipCount)
        {
            return SampleFactory.CreateCmisObjectList();
        }

        // returns sample content changes
        public override TokenedCmisObjectList GetContentChanges(string repositoryId, string changeToken, bool includeProperties, bool includePolicyIds, string filter, bool includeAcl, string maxItems)
        {
            return SampleFactory.CreateTokenedCmisObjectList();
        }
    }
}